package br.com.banco.dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class BancoDBManager {

    public Connection obterConexaoMySQL() throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        return DriverManager.getConnection("jdbc:mysql://localhost:3306/banco", "root", "fiap");
    }

    public Connection obterConexaoJavaDb() throws Exception {
        Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
        return DriverManager.getConnection("jdbc:derby:banco", "root", "fiap");
    }
}
